<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>

<html>
<head>
<title>Nuevo Estudiante</title>
</head>
<body>
	<h1>Nuevo Estudiante</h1>

	<c:url var="saveStudianteUrl" value="/students/save.html" />
	<form:form modelAttribute="student" method="POST"
		action="${saveStudianteUrl}">

		<form:label path="studentName">Nombre Estudiante :</form:label>
		<form:input path="studentName" />

		<br />

		<SELECT name=adress>
			<c:forEach items="${lista}" var="lista">
				<OPTION value="<c:out value="${lista.adressid}"/>">
					<c:out value="${lista.street}" />
				</OPTION>
			</c:forEach>
		</SELECT>
		<br />

		<input type="submit" value="Salvar Estudiante" />
	</form:form>

</body>
</html>